package com.masterviame.Authc.mapper;

import com.masterviame.Authc.pojo.User;

import java.util.List;

/**
 * Created by mastervictory on 2017/12/13.
 */
public interface UserMapper {

    List<User> getUsers();
    User getUserById(long userid);
    User getUserByuserName(String username);
    void deleteUserById(long userid);
    void deleteUserRole(long userid,long roleid);
    void addUserRole(long userid,long roleid);
    void addUser(User user);
    void updateUser(User user);
    void deleteUserRoles(long userid);
}
